//
//  Color.m
//  OC04_Homework
//
//  Created by dllo on 16/7/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Color.h"

@implementation Color

- (instancetype)initWihtName:(NSString *)name colorValue:(NSString *)colorValue
{
    self = [super init];
    if (self) {
        _name = name;
        _colorValue = colorValue;
    }
    return self;
}

+ (instancetype)colorWithName:(NSString *)name colorValue:(NSString *)colorValue
{
    return [[Color alloc] initWihtName:name colorValue:colorValue];
}

@end
